package REDES2;

import java.util.ArrayList;

public class Commands {
	protected static String comandos[] = {"#","inv", "UPLIST"};
	protected static ArrayList<String> commands = new ArrayList<String>();
	
	protected static boolean checkCommand(String cmd){
		return commands.contains(cmd);
	}
	protected static  void addCommands(){
	for (int i = 0; i < comandos.length; i++) {
		commands.add(comandos[i]);
	}
	}
	protected static void mostraLista(){
		for (int i = 0; i < commands.size(); i++) {
		System.out.println(commands.get(i));
		}
	}
	public static void main(String[] args) {
		addCommands(); mostraLista();
		System.out.println(commands.contains("#"));
	}
	
}
